﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.LightmapSettings
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;
using System.Runtime.CompilerServices;
using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>Stores lightmaps of the Scene.</para>
  /// </summary>
  [NativeHeader("Runtime/Graphics/LightmapSettings.h")]
  [StaticAccessor("GetLightmapSettings()")]
  public sealed class LightmapSettings : Object
  {
    private LightmapSettings()
    {
    }

    /// <summary>
    ///   <para>Lightmap array.</para>
    /// </summary>
    public static extern LightmapData[] lightmaps { [FreeFunction, MethodImpl(MethodImplOptions.InternalCall)] get; [FreeFunction(ThrowsException = true), MethodImpl(MethodImplOptions.InternalCall)] [param: Unmarshalled] set; }

    /// <summary>
    ///   <para>NonDirectional or CombinedDirectional Specular lightmaps rendering mode.</para>
    /// </summary>
    public static extern LightmapsMode lightmapsMode { [MethodImpl(MethodImplOptions.InternalCall)] get; [FreeFunction(ThrowsException = true), MethodImpl(MethodImplOptions.InternalCall)] set; }

    /// <summary>
    ///   <para>Baked Light Probe data.</para>
    /// </summary>
    public static extern LightProbes lightProbes { [MethodImpl(MethodImplOptions.InternalCall)] get; [NativeName("SetLightProbes"), FreeFunction, MethodImpl(MethodImplOptions.InternalCall)] set; }

    [NativeName("ResetAndAwakeFromLoad")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    internal static extern void Reset();

    [Obsolete("Use lightmapsMode instead.", false)]
    public static LightmapsModeLegacy lightmapsModeLegacy
    {
      get => LightmapsModeLegacy.Single;
      set
      {
      }
    }

    [Obsolete("Use QualitySettings.desiredColorSpace instead.", false)]
    public static ColorSpace bakedColorSpace
    {
      get => QualitySettings.desiredColorSpace;
      set
      {
      }
    }
  }
}
